package org.example.exp3.exam6;

public class Client {
    public static void main(String[] args) {
        Thermosensor thermoSensor = new Thermosensor();
        AnnunciatorObserver annunciatorObserver = new AnnunciatorObserver();
        CautionLightObserver cautionLightObserver = new CautionLightObserver();
        InsulatedDoorObserver insulatedDoorObserver = new InsulatedDoorObserver();
        SecurityDoorObserver securityDoorObserver = new SecurityDoorObserver();

        thermoSensor.attach(annunciatorObserver);
        thermoSensor.attach(cautionLightObserver);
        thermoSensor.attach(insulatedDoorObserver);
        thermoSensor.attach(securityDoorObserver);

        thermoSensor.trigger();
    }
}
